﻿using FreeSql;
using System.Linq.Expressions;

namespace Unis.FMS.Platform.Dispatch.Domain.Contracts
{
    public interface IFMSRepositoryBase<TEntity, TKey> : IBaseRepository<TEntity, TKey> where TEntity : class
    {
        Task<List<TEntity>> GetListAsync(Expression<Func<TEntity, bool>> predicate, CancellationToken cancellationToken = default);
    }
}